
#ifndef BOUNDMAILBOX_H_
#define BOUNDMAILBOX_H_

#include <queue>
#include <vector>
#include "Message.h"
#include "UnBoundMailBox.h"

using namespace std;
class BoundMailBox: public UnBoundMailBox
{
public:
		BoundMailBox(int size);
		virtual ~BoundMailBox();
		void addFirst(Message* msg);
		void addLast(Message* msg);
		//virtual Message* getNextMsg();
		bool isFull();
private:
		int _boundSize;
};

#endif /* BOUNDMAILBOX_H_ */
